package com.qing.cheng.service.impl;

import com.qing.cheng.entity.QcSchool;
import com.qing.cheng.mapper.QcSchoolMapper;
import com.qing.cheng.service.QcSchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QcSchoolServiceImpl implements QcSchoolService {
    @Autowired(required = false)
    private QcSchoolMapper qcSchoolMapper;

    @Override
    public void insert(QcSchool qcSchool) {
        qcSchoolMapper.insert(qcSchool);
    }

    @Override
    public QcSchool selectById(int id){
        return qcSchoolMapper.selectByPrimaryKey(id);
    }
}
